package com.xjscrm.server.service.common.impl;

import com.baomidou.mybatisplus.core.toolkit.StringUtils;
import com.xjscrm.common.entity.CorpApplicationDevice;
import com.xjscrm.server.mapper.CorpApplicationDeviceMapper;
import com.xjscrm.server.service.common.CorpApplicationDeviceService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * @author liuqi
 * @date 2021年08月25日 20:17
 */
@Service
@Slf4j
public class CorpApplicationDeviceServiceImpl implements CorpApplicationDeviceService {

    @Autowired
    private CorpApplicationDeviceMapper corpApplicationDeviceMapper;

    /**
     * 处理企业-是否关注企业应用
     *
     * @param
     * @return null
     * @author liuqi
     * @date 2021/8/13 11:38
     */
    public CorpApplicationDevice selectByOpenuserId(String openuserid) {

        if (StringUtils.isBlank(openuserid)) {
            return null;
        }

        CorpApplicationDevice corpApplicationDevice = corpApplicationDeviceMapper.selectByOpenuserid(openuserid);
        return corpApplicationDevice;
    }

}
